package com.scud.order.service;

import com.scud.model.PageDto;
import com.scud.model.PageResult;
import com.scud.model.order.dto.CreateOrderDto;
import com.scud.model.order.dto.FullOrderDto;
import com.scud.model.order.pojo.Order;
import com.scud.model.order.vo.ManageOrderVo;
import com.scud.model.order.vo.OrderInfoVo;

import java.util.List;

public interface OrderService {

    String createOrder(CreateOrderDto createOrderDto);

    OrderInfoVo getOrderIndo(Long orderId);

    void saveAOrder(FullOrderDto orderDto);


    Order getOrder(Long id);

    void updateOrderStatus(Long id, int status);

    List<Order> getCurrentOrderList();

    void payOrder(Long orderId);

    PageResult<ManageOrderVo> manageOrderPage(PageDto dto);
}
